﻿using LJ.Abstractions.DependencyInjection;
using LJ.Abstractions.Thread;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LJ.Host.Abstractions.Thread;


public class CancellationTokenProvider(IHybridProvider<CancellationToken> cancellationTokenHybridProvider) : ICancellationTokenProvider
{

    /// <summary>
    /// 获取 异步任务取消标识
    /// </summary>
    public CancellationToken Token { get; } = cancellationTokenHybridProvider.Value;

}